import request from '@/utils/request'

const api = {
  addBaseScaleUrl: '/base_scale/add_base_scale',
  getBaseScalePageUrl: '/base_scale/get_base_scale_page',
  removeBaseScaleUrl: '/base_scale/remove_base_scale',
  editBaseScaleUrl: '/base_scale/edit_base_scale',
}

export async function addBaseScaleApi(params: Map<string, any>) {
  const res = await request({
    url: api.addBaseScaleUrl,
    method: 'post',
    data: params,
  })
  return res
}
export async function getBaseScalePageApi(params: Map<string, any>) {
  const res = await request({
    url: api.getBaseScalePageUrl,
    method: 'post',
    data: params,
  })
  return res
}
export async function removeBaseScaleApi(params: Map<string, any>) {
  const res = await request({
    url: api.removeBaseScaleUrl,
    method: 'get',
    params: params,
  })
  return res
}
export async function editBaseScaleApi(params: Map<string, any>) {
  const res = await request({
    url: api.editBaseScaleUrl,
    method: 'post',
    data: params,
  })
  return res
}
